<template>
	<view class="">
		<topHead :title='title' :noBack="false"></topHead>
		<!-- 音标 -->
		<pho v-if="type == 'pho'"></pho>
		<!-- 字头表 -->
		<ini v-if="type == 'ini'"></ini>
	</view>
</template>
<script>
	import pho from 'pagesUser/components/learn/pho.vue';
	import ini from 'pagesUser/components/learn/ini.vue';
	export default {
		components: { pho, ini },
		data() {
			return {
				title: '学习内容',
				type: '',
			}
		},
		onLoad(e) {
			this.type = e.type;
			this.init();
		},
		methods: {
			init() {
				if(this.type == 'pho') this.title = '音标'
				if(this.type == 'ini') this.title = '字头表'
			}
		}
	}
</script>
<style>
	
</style>